<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var name = '林一一'
			var obj = {
			     name: '林二二',
			     prop: {
			           getName: function(){ return this.name }
			     }
			}
			//undefined
			console.log(obj.prop.getName())
			//
			var a = obj.prop.getName
			//林一一
			console.log(window.a())
		</script>
	</body>
</html>
